package com.echatim.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
@NoArgsConstructor
@Accessors(chain = true)
@Data
public class ServerInfoDTO {
    private String branch;
    private String gitIdAbbrev;
    private String gitTime;
    private String authType;
    private List<String> modules = new ArrayList<>();
    private List<ServerToolkit> toolkit = new ArrayList<>();

    @JsonIgnoreProperties(ignoreUnknown = true)
    @NoArgsConstructor
    @Accessors(chain = true)
    @Data
    public static class ServerToolkit{
        private String name;
        private Integer enable;
    }


}
